/*
* @Author: DELL
* @Date:   2017-08-13 11:37:39
* @Last Modified by:   DELL
* @Last Modified time: 2017-08-16 09:35:29
*/

'use strict';
import Vue from "vue";
import App from "./App.vue";
import vueRouter from "vue-router";
Vue.use(vueRouter);
import home from "./components/Home.vue";
import shopcar from "./components/shopcar/car.vue";
import newslist from "./components/news/newslist.vue";
import newsinfo from "./components/news/newsinfo.vue";
import photolist from "./components/photo/photolist.vue";
import photoinfo from "./components/photo/photoinfo.vue";
import goodslist from "./components/goods/goodslist.vue";
import goodsinfo from "./components/goods/goodsinfo.vue";
import goodsdesc from "./components/goods/goodsdesc.vue";
import goodsdesccomment from "./components/goods/goodsdesccomment.vue";
var router1=new vueRouter({
      linkActiveClass:"mui-active",
      routes:[
          {path:"/",redirect:"/home"},
          {path:"/home",component:home},
          {path:"/shopcar",component:shopcar},
          {path:"/news/newslist",component:newslist},
          {path:"/news/newsinfo/:id",component:newsinfo},
          {path:"/photo/photolist",component:photolist},
          {path:"/photo/photoinfo/:id",component:photoinfo},
          {path:"/goods/goodslist",component:goodslist},
          {path:"/goods/goodsinfo/:id",component:goodsinfo},
          {path:"/goods/goodsdesc/:id",component:goodsdesc},
          {path:"/goods/goodsdesccomment/:id",component:goodsdesccomment}          
      ]
  });
import "mint-ui/lib/style.min.css";
import mintui from "mint-ui";
Vue.use(mintui);
import "../statics/mui/css/mui.css";
import "../statics/css/site.css";
import vueResource from "vue-resource";
import moment from "moment";
import VuePreview from 'vue-preview';
Vue.use(VuePreview);
Vue.filter("datafmt",function(input,fmtstring){
  return moment(input).format(fmtstring);
})
Vue.use(vueResource);
new Vue({
  el:"#app",
  router:router1,
  render:c=>c(App)
});